/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.banner;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.banner.EduBanner;
import com.idenger.modules.edu.dao.banner.EduBannerDao;

/**
 * bannerService
 * @author 兰正军
 * @version 2017-11-27
 */
@Service
@Transactional(readOnly = true)
public class EduBannerService extends CrudService<EduBannerDao, EduBanner> {

	public EduBanner get(String id) {
		return super.get(id);
	}
	
	public List<EduBanner> findList(EduBanner eduBanner) {
		return super.findList(eduBanner);
	}
	
	public Page<EduBanner> findPage(Page<EduBanner> page, EduBanner eduBanner) {
		return super.findPage(page, eduBanner);
	}
	
	@Transactional(readOnly = false)
	public void save(EduBanner eduBanner) {
		super.save(eduBanner);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduBanner eduBanner) {
		super.delete(eduBanner);
	}
	
	public List<EduBanner> findBannerForPlace(String place){
		
	 	return dao.findBannerForPlace(place);
	}
	
}